import { httpGet, httpPost, upload, fileView } from './utils/ajax';
// app.js
App({
    /**
     * 小程序初始化加载时的事件
     */
    onLaunch() {
        const tokenName = wx.getStorageSync('tokenName');
        const token = wx.getStorageSync('token');
        if (!tokenName || !token) {
            // 不存在本地token，那么就跳转登录页
            // wx.reLaunch({
            //     url: '/pages/login/login',
            // });
        }
    },
    globalData: {
        userInfo: null
    },
    httpGet,
    httpPost,
    upload,
    fileView
})